trig function and natural logarithm